<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="common/header.jsp" %>
<div class="link">
<h2>欢迎使用发票系统</h2>
		<c:if test="${status == 'notexist'}">
		    <p class="error">用户不存在</p>
		</c:if>
        <c:if test="${status == 'pwdwrong'}">
			<p class="error">密码错误</p>
		</c:if>		
		<form:form modelAttribute="user" action="/demo/user/login" method="post">
		<form:label path="name">用户名</form:label><form:input path="name"/>
		<form:label path="pwd">密码</form:label><form:password path="pwd"/>
		<button type="submit" id="login">登录</button>
		</form:form>
        
</div>
<%@ include file="common/footer.jsp" %>